package com.xzr.kutumanager.service;

import com.xzr.kutumanager.entity.UserInfo;
import com.xzr.kutumanager.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：徐志荣
 * @Date：2023/7/19 下午 2:31
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    public UserInfo login(String loginname, String password) {
        return userMapper.login(loginname, password);
    }

    public List<UserInfo> getAll() {
        return userMapper.getAll();
    }


}
